package 曾世昌12_8.zuoye13;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.List;

public class test {
    public static void main(String[] args) throws Exception {
        List<String> strings = FileUtils.readLines( new File( "E:\\untitled5\\src\\rc\\mxdx3_zhoumozuoye\\zuoye13\\1.properties" ), "utf-8" );
        String str = "";
        for (int i = 0; i < strings.size(); i++) {
            str = strings.get( i );
        }
        Class<?> aClass = Class.forName( str );
        Method run = aClass.getDeclaredMethod( "run" );
        run.setAccessible( true );
        Constructor<?> constructor = aClass.getConstructor();
        Object o = constructor.newInstance();
       run.invoke( o, null );

    }
}
